

export const getTableColumns = ({ params }) => [
	{
		title: "访问编号",
		dataIndex: "id",
		width: 140,
		ellipsis: true
	},
	{
		title: "登录名称",
		dataIndex: "username",
		width: 140,
		ellipsis: true
	},
	{
		title: "登录地址",
		dataIndex: "loginIp",
		width: 140,
		ellipsis: true
	},
	{
		title: "登录地点",
		dataIndex: "loginLocation",
		width: 140,
		ellipsis: true
	},
	{
		title: "浏览器",
		dataIndex: "browser",
		width: 100,
		ellipsis: true,
	},
	{
		title: "操作系统",
		dataIndex: "os",
		width: 100,
		ellipsis: true,
	},
	{
		title: "登录状态",
		dataIndex: "loginMessage",
		width: 100,
		ellipsis: true
	},
	{
		title: "邮箱",
		dataIndex: "email",
		width: 100,
		ellipsis: true
	},
	{
		title: "手机号",
		dataIndex: "phone",
		width: 100,
		ellipsis: true,
	},
	{
		title: "登录时间",
		dataIndex: "createTime",
		width: 140,
		ellipsis: true
	},
];

export const USER_STATUS = [
	{ label: '在线', value: 1 },
	{ label: '离线', value: 2 }
]

export const getSearchColumns = () => [
	{
		type: "input",
		placeholder: "登录名称",
		name: "username"
	},
	{
		type: "input",
		placeholder: "登录地址",
		name: "loginIp"
	},
	{
		type: "date",
		placeholder: "登录时间",
		name: "createTime"
	}
]
